package org.dromara.web.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.web.domain.vo.Table;
import org.dromara.web.domain.vo.TableDDL;

import java.util.List;
import java.util.Map;

@DS("target")
@Mapper
public interface TargetSQLExecMapper {

    void execute(@Param("sql") String sql);

    List<Map<String, Object>> selectList(@Param("sql") String sql);

    List<String> selectAllTableName();

    List<Table> selectAllTable();

    List<TableDDL> selectTableDDL(@Param("tableName") String tableName);
}
